#ifndef DEBUGWEBENGINE_H
#define DEBUGWEBENGINE_H

#include <QWebEnginePage>

class debugwebengine:public QWebEnginePage{
    Q_OBJECT

public:
    explicit debugwebengine(QObject* parent = nullptr);
    ~debugwebengine()override{}
protected:
    virtual bool certificateError(const QWebEngineCertificateError &certificateError)override;
 private slots:
    void onFeaturePermissionRequested(const QUrl &securityOrigin, QWebEnginePage::Feature feature);
    void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString& message, int lineNumber, const QString& sourceID);

};

#endif // DEBUGWEBENGINE_H
